import service from '@/utils/request'
// @Tags CasRetentionPersons
// @Summary 创建casRetentionPersons表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CasRetentionPersons true "创建casRetentionPersons表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /casRetentionPersons/createCasRetentionPersons [post]
export const createCasRetentionPersons = (data) => {
  return service({
    url: '/casRetentionPersons/createCasRetentionPersons',
    method: 'post',
    data
  })
}

// @Tags CasRetentionPersons
// @Summary 删除casRetentionPersons表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CasRetentionPersons true "删除casRetentionPersons表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /casRetentionPersons/deleteCasRetentionPersons [delete]
export const deleteCasRetentionPersons = (params) => {
  return service({
    url: '/casRetentionPersons/deleteCasRetentionPersons',
    method: 'delete',
    params
  })
}

// @Tags CasRetentionPersons
// @Summary 批量删除casRetentionPersons表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除casRetentionPersons表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /casRetentionPersons/deleteCasRetentionPersons [delete]
export const deleteCasRetentionPersonsByIds = (params) => {
  return service({
    url: '/casRetentionPersons/deleteCasRetentionPersonsByIds',
    method: 'delete',
    params
  })
}

// @Tags CasRetentionPersons
// @Summary 更新casRetentionPersons表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.CasRetentionPersons true "更新casRetentionPersons表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /casRetentionPersons/updateCasRetentionPersons [put]
export const updateCasRetentionPersons = (data) => {
  return service({
    url: '/casRetentionPersons/updateCasRetentionPersons',
    method: 'put',
    data
  })
}

// @Tags CasRetentionPersons
// @Summary 用id查询casRetentionPersons表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.CasRetentionPersons true "用id查询casRetentionPersons表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /casRetentionPersons/findCasRetentionPersons [get]
export const findCasRetentionPersons = (params) => {
  return service({
    url: '/casRetentionPersons/findCasRetentionPersons',
    method: 'get',
    params
  })
}

// @Tags CasRetentionPersons
// @Summary 分页获取casRetentionPersons表列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取casRetentionPersons表列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /casRetentionPersons/getCasRetentionPersonsList [get]
export const getCasRetentionPersonsList = (params) => {
  return service({
    url: '/casRetentionPersons/getCasRetentionPersonsList',
    method: 'get',
    params
  })
}

// @Tags CasRetentionPersons
// @Summary 不需要鉴权的casRetentionPersons表接口
// @accept application/json
// @Produce application/json
// @Param data query retention_personReq.CasRetentionPersonsSearch true "分页获取casRetentionPersons表列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /casRetentionPersons/getCasRetentionPersonsPublic [get]
export const getCasRetentionPersonsPublic = () => {
  return service({
    url: '/casRetentionPersons/getCasRetentionPersonsPublic',
    method: 'get',
  })
}

export const generateRetentionPersonExcel = (params) => {
  return service({
    url: '/casRetentionPersons/generateRetentionPersonExcel',
    method: 'get',
    params
  })
}